package com.nana.petadventure.app
{
	import flash.text.Font;

	public class AppFont
	{
		public static const FONTLIBRARY:String = "FontLibrary";
		
		public static var fontClass:Class;
		
		public static function registerFont():void{
			var _local1:Class = fontClass;
			if (_local1 == null){
				return;
			}
			if (_local1.DEFAULT_FONT_EMBED == VinciFont.USE_EMBED){
				Font.registerFont(_local1[_local1.DEFAULT_FONT]);
			}
			if (_local1.AFFIRMATORY_FONT_EMBED == VinciFont.USE_EMBED){
				Font.registerFont(_local1[_local1.AFFIRMATORY_FONT]);
			}
			if (_local1.EXTERNAL_FONT_EMBED == VinciFont.USE_EMBED){
				Font.registerFont(_local1[_local1.EXTERNAL_FONT]);
			}
		}
		public static function get defaultFont():String{
			if (fontClass == null){
				return ("宋体");
			}
			return (fontClass.DEFAULT_FONT);
		}
		public static function get defaultFontEmbed():String{
			if (fontClass == null){
				return (VinciFont.NONUSE_EMBED);
			}
			return (fontClass.DEFAULT_FONT_EMBED);
		}
		
		public static function get affirmatoryFont():String{
			if (fontClass == null){
				return ("Tahoma");
			};
			return (fontClass.AFFIRMATORY_FONT);
		}
		
		public static function get affirmatoryFontEmbed():String{
			if (fontClass == null){
				return (VinciFont.NONUSE_EMBED);
			};
			return (fontClass.AFFIRMATORY_FONT_EMBED);
		}
		
		public static function get externalFont():String{
			if (fontClass == null){
				return ("Tahoma");
			};
			return (fontClass.EXTERNAL_FONT);
		}
		
		public static function get externalFontEmbed():String{
			if (fontClass == null){
				return (VinciFont.NONUSE_EMBED);
			};
			return (fontClass.EXTERNAL_FONT_EMBED);
		}
		
		public static function createAffirmatoryFont(_arg1:uint=11, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Boolean=false, _arg5:String="left", _arg6:int=0, _arg7:Object=null):VinciFont{
			return (new VinciFont(AppFont.affirmatoryFont, _arg1, _arg2, _arg3, _arg4, AppFont.affirmatoryFontEmbed, _arg5, _arg6, _arg7));
		}
		
		public static function creatExternalFont(_arg1:uint=11, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Boolean=false, _arg5:String="left", _arg6:int=0, _arg7:Object=null):VinciFont{
			return (new VinciFont(AppFont.externalFont, _arg1, _arg2, _arg3, _arg4, AppFont.externalFontEmbed, _arg5, _arg6, _arg7));
		}
		
		public static function createDefaultFont(_arg1:uint=11, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Boolean=false, _arg5:String="left", _arg6:int=0, _arg7:Object=null):VinciFont{
			return (new VinciFont(AppFont.defaultFont, _arg1, _arg2, _arg3, _arg4, AppFont.defaultFontEmbed, _arg5, _arg6, _arg7));
		}
	}
}